package com.lancoo.cvas;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@ServletComponentScan
@EnableTransactionManagement
@EnableScheduling
@EnableCaching
@EnableAsync
@SpringBootApplication
public class CvasApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(CvasApplication.class, args);
	}

	@Override
	//war包才会用到 回调
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(CvasApplication.class);
	}

}
